import request from '@/utils/myRequest'

export function getClassList(params) {
  return request({
    url: '/admin/xy/clazz/list',
    method: 'get',
    params
  })
}

export function delClass(params) {
  return request({
    url: '/admin/xy/clazz/del',
    method: 'get',
    params
  })
}

export function getClassDetail(params) {
  return request({
    url: '/admin/xy/clazz/detail',
    method: 'get',
    params
  })
}

export function updateClass(data) {
  return request({
    url: '/admin/xy/clazz/update',
    method: 'post',
    data
  })
}

export function saveClass(data) {
  return request({
    url: '/admin/xy/clazz/save',
    method: 'post',
    data
  })
}

